﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="BuscaProfissional.aspx.cs" Inherits="PortalDeEmpregos.BuscaProfissional" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="corpo">
        <h2>
            Busca por Profissionais</h2>
        <p>
            <asp:Label ID="lblDescricao" runat="server" Text="Busca: "></asp:Label>
            <asp:TextBox ID="txtDescricao"
        runat="server" Width="288px"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="Pesquisar" 
        onclick="Button1_Click" />
            <asp:SqlDataSource ID="BuscaProfissionalDS" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PortalvaleConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:PortalvaleConnectionString.ProviderName %>" 
        
        
        
                SelectCommand="SELECT PRCNOME, PRNCALCULED_IDADE, PRCFONE, PRCFORMACAO, PRCINSTITUICAOENSINO, PRLCONCLUIDO, PRDANOCONCLUSAO, PRCIDIOMAS, PRCOBSERVACAO, PRCAREAATUACAO, PRCFUNCAO FROM PROFISSIONAL WHERE (PRCAREAATUACAO LIKE '%' + @AREA + '%')">
                <SelectParameters>
                    <asp:ControlParameter ControlID="txtDescricao" Name="AREA" 
                PropertyName="Text" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:DataList ID="DataList1" runat="server" CellPadding="4" 
        DataSourceID="BuscaProfissionalDS" ForeColor="#333333" Width="424px">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SeparatorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
            Font-Strikeout="False" Font-Underline="False" />
                <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <ItemTemplate>
                    PRCNOME:
                    <asp:Label ID="PRCNOMELabel" runat="server" Text='<%# Eval("PRCNOME") %>' />
                    <br />
                    PRNCALCULED_IDADE:
                    <asp:Label ID="PRNCALCULED_IDADELabel" runat="server" 
                        Text='<%# Eval("PRNCALCULED_IDADE") %>' />
                    <br />
                    PRCFONE:
                    <asp:Label ID="PRCFONELabel" runat="server" Text='<%# Eval("PRCFONE") %>' />
                    <br />
                    PRCFORMACAO:
                    <asp:Label ID="PRCFORMACAOLabel" runat="server" 
                        Text='<%# Eval("PRCFORMACAO") %>' />
                    <br />
                    PRCINSTITUICAOENSINO:
                    <asp:Label ID="PRCINSTITUICAOENSINOLabel" runat="server" 
                        Text='<%# Eval("PRCINSTITUICAOENSINO") %>' />
                    <br />
                    PRLCONCLUIDO:
                    <asp:Label ID="PRLCONCLUIDOLabel" runat="server" 
                        Text='<%# Eval("PRLCONCLUIDO") %>' />
                    <br />
                    PRDANOCONCLUSAO:
                    <asp:Label ID="PRDANOCONCLUSAOLabel" runat="server" 
                        Text='<%# Eval("PRDANOCONCLUSAO") %>' />
                    <br />
                    PRCIDIOMAS:
                    <asp:Label ID="PRCIDIOMASLabel" runat="server" 
                        Text='<%# Eval("PRCIDIOMAS") %>' />
                    <br />
                    PRCOBSERVACAO:
                    <asp:Label ID="PRCOBSERVACAOLabel" runat="server" 
                        Text='<%# Eval("PRCOBSERVACAO") %>' />
                    <br />
                    PRCAREAATUACAO:
                    <asp:Label ID="PRCAREAATUACAOLabel" runat="server" 
                        Text='<%# Eval("PRCAREAATUACAO") %>' />
                    <br />
                    PRCFUNCAO:
                    <asp:Label ID="PRCFUNCAOLabel" runat="server" Text='<%# Eval("PRCFUNCAO") %>' />
                    <br />
                    <br />
                </ItemTemplate>
            </asp:DataList>
        </p>
    </div>
</asp:Content>
